package com.skt.common_hr.main.effects
{
	import mx.effects.effectClasses.TweenEffectInstance;

	public class BoxMoveUpInstance extends TweenEffectInstance
	{
		public function BoxMoveUpInstance(target:Object)
		{
			super(target);
		}
		
		override public function play():void 
		{
			super.play();
			createTween(this, [angleFrom, scaleFrom], [angleTo, scaleTo], duration);
		}
		
		override public function onTweenUpdate(value:Object):void
		{
			target.rotation = value[0];
			target.scaleX = target.scaleY = value[1];
		}
		
		override public function onTweenEnd(value:Object):void
		{
			super.onTweenEnd(value);
		}
	}
}